package com.gn.heavenpark.activity;

import java.io.IOException;
import java.util.List;
import java.util.Locale;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

import android.content.Context;
import android.location.Address;
import android.location.Criteria;
import android.location.Geocoder;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;


public class HeavenParkMap extends MapActivity {

		MapView mapView;
		MapController mapController;
		Button myLocBtn;
		TextView txtA;
	
		@Override
		protected void onCreate(Bundle savedInstanceState) {
		
			super.onCreate(savedInstanceState);
			setContentView(R.layout.heavenpark_map);
			
			mapView=(MapView)findViewById(R.id.mapview);
			mapView.setBuiltInZoomControls(true);
			mapView.setSatellite(false);  // 위성지도 보기 여부
		
			//원하는 위치
			mapController=mapView.getController();
			Double lat=37.559866*1E6;
			Double lng=126.98287*1E6;
			GeoPoint point=new GeoPoint(lat.intValue(), lng.intValue());
			mapController.animateTo(point);
			mapController.setZoom(16);
			
			//내 위치
			myLocBtn=(Button)findViewById(R.id.myLocBtn);
			myLocBtn.setOnClickListener(new OnClickListener() {
				
				@Override
				public void onClick(View v) {
				
					Toast.makeText(HeavenParkMap.this, "내 위치로 이동합니다 (나중에)", Toast.LENGTH_SHORT).show();
							
				}
			});
			
			
		}

		@Override
		protected boolean isRouteDisplayed() {
			// TODO Auto-generated method stub
			return false;
		}
		
	}









	